home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / source.exe / POSIX / GREP / REGEXP.H < prev    next >
C/C++ Source or Header  |  1992-09-30  |  802b  |  29 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7. #define NSUBEXP  10
  8. typedef struct regexp {
  9.     char *startp[NSUBEXP];
  10.     char *endp[NSUBEXP];
  11.     char regstart;        /* Internal use only. */
  12.     char reganch;        /* Internal use only. */
  13.     char *regmust;        /* Internal use only. */
  14.     int regmlen;        /* Internal use only. */
  15.     char program[1];    /* Unwarranted chumminess with compiler. */
  16. } regexp;
  17.  
  18. #if __STDC__
  19. extern regexp *regcomp (char *);
  20. extern int regexec (register regexp *, register char *);
  21. extern void regsub (regexp *, char *, char *);
  22. extern void regerror (const char *);
  23. #else
  24. extern regexp *regcomp();
  25. extern int regexec();
  26. extern void regsub();
  27. extern void regerror();
  28. #endif
  29.